package com.app.shop.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Scheduler 定时器统一管理类
 * @author chenliwei
 */
@Component
public class Scheduler {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    /**
     * 15定时
     */
    @Scheduled(cron="0 */15 * * * ?")
    public void loginClear() {

    }

    /**
     * 每天4点定时
     */
    @Scheduled(cron="0 0 4 * * ?")
    public void tokenClear() {

    }


}
